import javax.swing.*;
import java.awt.*;

public class Frame extends JFrame {
    
    public static String title = "Tetris";
    public static Dimension size = new Dimension(500, 529);
    
    public static void main(String[] args) {
        
        Frame frame = new Frame();
        
    }
    
    public Frame() {
        setTitle(title);
        setSize(size);
        setResizable(false);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        init();
    }
    
    public void init() {
        setLayout(new GridLayout(1, 1, 0, 0));
        
        Screen screen = new Screen(this);
        add(screen);
        
        setVisible(true);
    }
}
